# Maintainer: Eirik Furuseth <alpine@heplaphon.com>
pkgname=ripasso-cursive
_pkgrelname=ripasso
pkgver=0.5.2
pkgrel=0
pkgdesc="A password manager that uses the file format of the standard unix password manager 'pass', implemented in rust."
url="https://github.com/cortex/ripasso/"
arch="all !s390x !riscv64 !armhf"
license="GPL-3.0-or-later"
makedepends="gettext rust cargo libgpg-error-dev gpgme-dev openssl-dev libxcb-dev"
source="https://github.com/cortex/ripasso/archive/release-$pkgver.tar.gz"
builddir="$srcdir/$_pkgrelname-release-$pkgver"

prepare() {
	default_prepare
	cargo fetch --locked
}

build() {
	cargo build -p ripasso-cursive --release --frozen
}

check() {
	cargo test --release --frozen
}

package() {
	install -Dm0755 target/release/ripasso-cursive \
	-t "$pkgdir"/usr/bin
}

sha512sums="
7b90e13de3a81513ba29837d2180964242a5723f7d76690e2250508fd271eb58b6e826a65095ca07617f90db9f5e53cae50e6e31ca495f2dc2108da75837e220  release-0.5.2.tar.gz
"
